<template>
  <div>
    <div class="pcPool" v-if="isPC">
      <div class="banner"></div>
      <div class="pool-title">JOJO总矿池数量 (JOJO)</div>
      <div class="pool-amount">21,920,782,708</div>
      <div class="pool-value">≈ $1,869,005</div>
    </div>
    <div class="mobile_pool" v-else>
      <div class="banner"></div>
      <div class="pool-title">JOJO总矿池数量 (JOJO)</div>
      <div class="pool-amount">21,920,782,708</div>
      <div class="pool-value">≈ $1,869,005</div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: null,
    },
  },
  data: () => ({}),
  computed: {
    isPC() {
      return this.$store.state.clientWidth > 960 ? true : false;
    },
  },
};
</script>
<style  lang="scss" scoped>
.pcPool {
  margin-top: 30px;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#feeb73),
    to(#fcd33f)
  );
  background: linear-gradient(180deg, #feeb73, #fcd33f);
  border-radius: 32px;
  padding: 48px;
  padding-right: 50%;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #431216;
  overflow: hidden;
  .banner {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    background-size: auto 100%;
    background-position: 100%;
    background-repeat: no-repeat;
    background-image: url(./../../../assets/images/pool/banner.png);
  }
  .pool-title {
    font-size: 20px;
    position: relative;
  }
  .pool-amount {
    font-size: 54px;
    margin-top: 12px;
    font-weight: 700;
    position: relative;
  }
  .pool-value {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
    position: relative;
  }
}
.mobile_pool {
  margin-top: 20px;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#feeb73),
    to(#fcd33f)
  );
  background: linear-gradient(180deg, #feeb73, #fcd33f);
  border-radius: 32px;
  padding: 48px;
  padding-right: 50%;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #431216;
  overflow: hidden;
  padding: 24px;
  border-radius: 20px;
  color: #431216;
  .pool-title {
    font-size: 14px;
  }
  .pool-amount {
    font-size: 34px;
    margin-top: 8px;
    font-weight: 700;
  }
  .pool-value {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
  }
}
</style>